package com.test.test.dao;


import com.test.test.pojo.Goods;
import org.apache.ibatis.annotations.*;

import java.util.List;


@Mapper
public interface GoodsDao {
    @Delete("delete from tb_goods where id=#{id}")
    int deleteById (Integer id);
    int deleteObjects(@Param("ids") Integer...ids);
    @Select("select * from tb_goods")
    List<Goods> find();
    @Insert("insert into tb_goods value(null,#{name},#{remark},now())")
    int  insertObject(Goods good);
}
